/**
 * @Author:  renyc
 * @Date: 2022年11月30日20:59:39
 */

import * as Cesium from 'cesium/Cesium';

const TILE_URL = {
    //http://8.140.115.143:8080/tms/raster_world
    img: '/tms/raster_world',
    // elec:
    //   '//webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
    // cva:
    //   '//webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
  }

class OneSISImageryProvider extends Cesium.TileMapServiceImageryProvider {
    constructor(options = {}) {
      options['url'] = options.url || TILE_URL.img;
      options['fileExtension'] = 'jpg';
      super(options)
    }
}

export default OneSISImageryProvider;